1 #ifndef CONTACT_H_INCLUDED
2 #define CONTACT_H_INCLUDED
3 #include<
string>
4 #include<iostream>

5 using
namespace std;
6 class
Contact
7 {

8 protected
:
9     
string phone_no;
10     
string email;
11 public
:
12     
void set_phone_no(string);
13     
void set_email(string);
14     
string get_phone_no();
15     
string get_email();
16 };

17 void
Contact::set_phone_no(string p)
18 {
19     phone_no=p;
20 }

21 void
Contact::set_email(string e)
22 {
23     email=e;
24 }

25 string
Contact::get_phone_no()
26 {
27     
return phone_no;
28 }

29 string
Contact::get_email()
30 {
31     
return email;
32 }
33 #endif
// CONTACT_H_INCLUDED


Gõ tìm kiếm nhanh...